package com.regentsoft.cloudback.enterpriseAdmin.dao;

import com.regentsoft.cloudback.enterpriseAdmin.entity.ChannelInfo;
import com.regentsoft.cloudback.enterpriseAdmin.entity.CompanyInfo;
import com.regentsoft.cloudback.enterpriseAdmin.vo.req.ChannelAddInfo;
import com.regentsoft.cloudback.enterpriseAdmin.vo.req.ChannelDeleteReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by work on 2017/11/27.
 *
 * @author lumr
 */
public interface CompanyDao {
    CompanyInfo getCompanyInfo(@Param("code")String code);

    int checkCompany(@Param("code")String code);

    //计算已授权店铺数量
    int countChannel(@Param("code") String code);

    int getChannelNum(@Param("code") String code);

    List<ChannelInfo> getAllChannelInfo(@Param("code")String code);

    List<ChannelInfo> getUnUseChannelInfo(@Param("code")String code);

    int deleteChannel(ChannelDeleteReq req);

    int addChannel(ChannelAddInfo req);

    ChannelInfo getChannelInfoById(@Param("code") String code,@Param("channelId") String channelId);

    int updateChannel(ChannelInfo channel);
}
